import request from '@/utils/request'

// 记录list
export function packingMaterialRecord(query) {
  return request({
    url: '/wms/packingMaterialRecord',
    method: 'get',
    params: query
  })
}

// 关系list
export function packingMaterialGoods(query) {
  return request({
    url: '/wms/packingMaterialGoods',
    method: 'get',
    params: query
  })
}
// 关系删除
export function packingMaterialGoodsDel(query) {
  return request({
    url: '/wms/packingMaterialGoods',
    method: 'DELETE',
    params: query
  })
}

// 关系删除
export function packingMaterialGoodsadd(query) {
  return request({
    url: '/wms/packingMaterialGoods',
    method: 'post',
    query
  })
}
// 关系新增包材
export function chooseData() {
  return request({
    url: '/wms/packingMaterial/chooseData',
    method: 'get'
  })
}
// 关系模糊
export function searchByGoodCodeAndName(data) {
  return request({
    url: '/wms/goods/searchByGoodCodeAndName',
    method: 'get',
    params: data
  })
}
// 维护list
export function packingMaterial(query) {
  return request({
    url: '/wms/packingMaterial',
    method: 'get',
    params: query
  })
}
// 维护del
export function packingMaterialDel(query) {
  return request({
    url: '/wms/packingMaterial',
    method: 'DELETE',
    params: query
  })
}
// 维护add
export function packingMaterialAdd(data) {
  return request({
    url: '/wms/packingMaterial',
    method: 'post',
    data
  })
}
// 商品Pn
export function goodspn(data) {
  return request({
    url: '/wms/goodspn',
    method: 'get',
    params: data
  })
}

// 商品Pn
export function goodspnDel(data) {
  return request({
    url: `/wms/goodspn/${data}`,
    method: 'get'
  })
}
// 商品PnAdd
export function goodspnAdd(data) {
  return request({
    url: `/wms/goodspn/save`,
    method: 'post',
    data
  })
}
// huozhu
export function shipments() {
  return request({
    url: `/wms/warehouseShipment/business/shipments`,
    method: 'get'
  })
}

// mohu
export function search(data) {
  return request({
    url: `/wms/goods/search`,
    method: 'get',
    params: data
  })
}
